/**
 * tigerrad
 * 2005
 */

#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>

#include <cmath>
#include <cassert>

#define GL_GLEXT_PROTOTYPES 1
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glext.h>
#include <SDL.h>

#include <boost/shared_ptr.hpp>

#include "Exception.h"

#include <osg/Vec3>
#include <osg/Vec4>
#include <osg/io_utils>

#ifndef _UTIL_H

typedef osg::Vec2s Vec2s;
typedef osg::Vec2f Vec2f;
typedef osg::Vec3 Vec3;
typedef osg::Vec4 Vec4;

typedef osg::Matrixf Matrix;

#define BUFFER_OFFSET(i) ((char *)NULL + (i))


/**
 * Will exit(0) if an OpenGL error is detected.
 * Only works with DEBUG defined.
 */
#ifdef DEBUG
#define checkGLError() _checkGLError(__LINE__, __FILE__);
#else
#define checkGLError()
#endif
void _checkGLError(int line, const char* file);

float phiHalton(int b, int i);
Vec4 MxV(float A[16], Vec4 x);

#define _UTIL_H



#endif 

